/*
 * EventPropagator.h
 *
 *  Created on: Sep 27, 2012
 *      Author: root
 */

#ifndef EVENTAGGREGATOR_H_
#define EVENTAGGREGATOR_H_
#include "Arduino.h"
#include "EventHandler.h"
#include "IEventListener.h"

const int MAX_HANDLERS = 3;
class EventAggregator
{
public:
	EventAggregator();
	
	void addHandler(EventHandler *handler);

	void removeHandler(EventHandler *handler);

	void execute();

	int tag;

private:
	//int handlerIndex;
	//EventHandler *handlers[MAX_HANDLERS];

	EventHandler *singleHandler;
};
#endif /* EVENTAGGREGATOR_H_ */
